package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 工具对象 tool_value_data
 *
 * @author ruoyi
 * @date 2022-10-01
 */
public class ToolValueData extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 主键 */
    private Integer toolId;

    private Integer actionId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 发生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发生时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date happenTime;

    /** 地点 */
    @Excel(name = "地点")
    private String coordinate;

    /** 动作类型 */
    @Excel(name = "动作类型")
    private String toolType;

    /** 截图保存图片地址 */
    @Excel(name = "截图保存图片地址")
    private String pictureAddress;

    /** 锚框参数（x,y,w,h） */
    @Excel(name = "锚框参数", readConverterExp = "x=,y,w,h")
    private String anchor;

    /** 人员ID（外键） */
    @Excel(name = "人员ID", readConverterExp = "外=键")
    private Integer personId;

    /** 摄像头 */
    @Excel(name = "摄像头")
    private String device;

    /** 摄像头ID（外键） */
    @Excel(name = "摄像头ID", readConverterExp = "外=键")
    private Integer deviceId;

    /** 准确度 */
    @Excel(name = "准确度")
    private BigDecimal accuracy;

    /** 1 当阳 2 殷墟 3 敦煌 4 通用 5模拟 */
    @Excel(name = "1 当阳 2 殷墟 3 敦煌 4 通用 5模拟")
    private Integer unit;

    /** 等级 */
    @Excel(name = "等级")
    private Integer level;

    /** 其它 */
    @Excel(name = "其它")
    private String other;

    private Integer ristType;

    public Integer getRistType() {
        return ristType;
    }

    public void setRistType(Integer ristType) {
        this.ristType = ristType;
    }


    public Integer getToolId() {
        return toolId;
    }

    public void setToolId(Integer toolId) {
        this.toolId = toolId;
    }

    public void setActionId(Integer actionId)
    {
        this.actionId = actionId;
    }

    public Integer getActionId()
    {
        return actionId;
    }
    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }
    public void setHappenTime(Date happenTime)
    {
        this.happenTime = happenTime;
    }

    public Date getHappenTime()
    {
        return happenTime;
    }
    public void setCoordinate(String coordinate)
    {
        this.coordinate = coordinate;
    }

    public String getCoordinate()
    {
        return coordinate;
    }
    public void setToolType(String toolType)
    {
        this.toolType = toolType;
    }

    public String getToolType()
    {
        return toolType;
    }
    public void setPictureAddress(String pictureAddress)
    {
        this.pictureAddress = pictureAddress;
    }

    public String getPictureAddress()
    {
        return pictureAddress;
    }
    public void setAnchor(String anchor)
    {
        this.anchor = anchor;
    }

    public String getAnchor()
    {
        return anchor;
    }
    public void setPersonId(Integer personId)
    {
        this.personId = personId;
    }

    public Integer getPersonId()
    {
        return personId;
    }
    public void setDevice(String device)
    {
        this.device = device;
    }

    public String getDevice()
    {
        return device;
    }
    public void setDeviceId(Integer deviceId)
    {
        this.deviceId = deviceId;
    }

    public Integer getDeviceId()
    {
        return deviceId;
    }
    public void setAccuracy(BigDecimal accuracy)
    {
        this.accuracy = accuracy;
    }

    public BigDecimal getAccuracy()
    {
        return accuracy;
    }
    public void setUnit(Integer unit)
    {
        this.unit = unit;
    }

    public Integer getUnit()
    {
        return unit;
    }
    public void setLevel(Integer level)
    {
        this.level = level;
    }

    public Integer getLevel()
    {
        return level;
    }
    public void setOther(String other)
    {
        this.other = other;
    }

    public String getOther()
    {
        return other;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("toolId", getToolId())
                .append("actionId", getActionId())
                .append("time", getTime())
                .append("happenTime", getHappenTime())
                .append("coordinate", getCoordinate())
                .append("toolType", getToolType())
                .append("pictureAddress", getPictureAddress())
                .append("anchor", getAnchor())
                .append("personId", getPersonId())
                .append("device", getDevice())
                .append("deviceId", getDeviceId())
                .append("accuracy", getAccuracy())
                .append("unit", getUnit())
                .append("level", getLevel())
                .append("other", getOther())
                .toString();
    }
}
